//
//  EmploymentDetOneCell.m
//  CenturyCity
//
//  Created by beisheng03 on 2017/12/27.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "EmploymentDetOneCell.h"

@interface EmploymentDetOneCell ()
@property (weak, nonatomic) IBOutlet UILabel *leftTopLabel;

@property (weak, nonatomic) IBOutlet UILabel *leftBottomLabel;
@property (weak, nonatomic) IBOutlet UILabel *topRightLabel;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomMargin;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *rightW;

@end

@implementation EmploymentDetOneCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.contentView.backgroundColor = [UIColor whiteColor];
    
    self.bottomMargin.constant = 0;
    
    self.leftTopLabel.font = MYFONT(16);
    
    self.topRightLabel.font = MYFONT(16);
    
    self.topRightLabel.textColor = [UIColor orangeColor];
    
    self.leftBottomLabel.font = MYFONT(14);
    
    self.leftBottomLabel.textColor = darkGray;
    // Initialization code
}

- (void)setModel:(EmploymentListModel *)model{
    _model = model;
    self.leftTopLabel.text = _model.position_name;
    
//    self.leftTopLabel.text = @"这就说明了这些小触手和hcg的莫大联系hcg能够反应这些小触手是否在正常地生长，也就说明了宝宝是否在正常发育只要hcg能够正常翻倍";
    
    self.topRightLabel.text = [NSString stringWithFormat:@"【%@】",_model.position_salary];
    
    CGSize size = [self.topRightLabel.text sizeWithAttributes:[NSDictionary dictionaryWithObjectsAndKeys:MYFONT(16), NSFontAttributeName, nil]];
    
    self.rightW.constant = size.width + 2;

    self.leftBottomLabel.text = [NSString stringWithFormat:@"%@ | %@ | %@",_model.position_class_name,_model.position_education_name,_model.position_life_name];

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
